package com.erp.dto;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.erp.domain.TApply;

/**
 * 申请表
 * 
 * @author 陈凯
 * 
 */
public class Apply implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	private Integer id;
	private User applicant;// 申请人
	private Date applyTime;// 申请时间
	private String title;// 申请标题
	private Integer status;// 申请状态
	private String procInstId;// 流程实例ID
	private List<Examine> examineList = new ArrayList<Examine>();

	public Apply() {
	}

	public Apply(TApply tApply) {
		this.id = tApply.getId();
		this.applicant = new User(tApply.gettApplicant());
		this.applyTime = tApply.getApplyTime();
		this.title = tApply.getTitle();
		this.status = tApply.getStatus();
		this.procInstId = tApply.getProcInstId();
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public User getApplicant() {
		return applicant;
	}

	public void setApplicant(User applicant) {
		this.applicant = applicant;
	}

	public Date getApplyTime() {
		return applyTime;
	}

	public void setApplyTime(Date applyTime) {
		this.applyTime = applyTime;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getProcInstId() {
		return procInstId;
	}

	public void setProcInstId(String procInstId) {
		this.procInstId = procInstId;
	}

	public List<Examine> getExamineList() {
		return examineList;
	}

	public void setExamineList(List<Examine> examineList) {
		this.examineList = examineList;
	}

}
